package juc.comfunc;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;

@Slf4j(topic = "c.TestSleep")
public class TestSleep {
    public static void main(String[] args) throws InterruptedException {
        log.debug("start sleep");
        // 使用TimeUnit可读性更好
        TimeUnit.SECONDS.sleep(1);
        log.debug("end sleep");
    }
}
